﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Wuther.Infrastructure.Menus
{

    public class MenuDto
    {
        public int Id { get; set; }

        [Column("parent_id")]
        public int? ParentId { get; set; }

        [Required]
        public string Name { get; set; }

        public string Path { get; set; }

        public string Permission { get; set; }

        [Column(TypeName = "tinyint")]
        public int Type { get; set; } = 0;

        public string Icon { get; set; } = string.Empty;

        [Column("order_no", TypeName = "int")]
        public int OrderNo { get; set; } = 0;

        [Column("component")]
        public string Component { get; set; }

        [Column("is_ext")]
        public bool IsExt { get; set; } = false;

        [Column("ext_open_mode", TypeName = "tinyint")]
        public int ExtOpenMode { get; set; } = 1;

        [Column("keep_alive", TypeName = "tinyint")]
        public int KeepAlive { get; set; } = 1;

        [Column(TypeName = "tinyint")]
        public int Show { get; set; } = 1;

        [Column("active_menu")]
        public string ActiveMenu { get; set; }

        [Column(TypeName = "tinyint")]
        public int Status { get; set; } = 1;

    }
}
